import http from "@/api/http";

export function getTree() {
    return http.get({
        url: "/content/attach/group/tree",
    });
}

export function getGroup(id: number) {
    return http.get({
        url: "/content/attach/group/" + id,
    });
}

export function saveGroup(obj: any) {
    return http.post({
        url: "/content/attach/group",
        data: obj,
    });
}

export function updateGroup(obj: any) {
    return http.put({
        url: "/content/attach/group",
        data: obj,
    });
}

export function delGroup(id: number) {
    return http.delete({
        url: "/content/attach/group/" + id,
    });
}
